<script setup>
	// uni.setStorageSync('storage_key', 'hello');
	// uni.setStorageSync('storage_key', 'ABC');//会覆盖上一个 
	uni.setStorageSync('name', '张三');
	uni.setStorageSync("arrs", [1, 2, 3]);

	let myName = uni.getStorageSync("name")
	console.log(myName);

	const res = uni.getStorageInfoSync();
	console.log(res);

	function remove() {
		uni.removeStorageSync("name")
	}

	function clear() {
		uni.clearStorage()
	}
</script>
<template>
	<view class="">
		<button @click="remove">清空</button>
		<button @click="clear">全部清空</button>
	</view>
</template>
<style lang="scss" scoped>

</style>